package novel.front.novellist.service.serviceImpl;

import novel.front.novellist.dao.suguoMapper;
import novel.front.novellist.entity.suguo;
import novel.front.novellist.service.suguoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by 苏同 on 2016/10/5.
 */
@Service("suguoService")
public class suguoServiceImpl implements suguoService{

    @Resource
    private suguoMapper suguoMapper;

    @Override
    public suguo getNameById(int id)
    {
        return suguoMapper.selectByPrimaryKey(id);
    }

}
